package cn.chenxhcloud.myvv;

import org.voovan.http.server.WebServer;

public class HttpServerDemo {
	public static void main(String[] args) {
		/*// 1.构造一个 WebServer 实例.
		WebServer webServer = WebServer.newInstance(8989);

		// 2.注册路由.
		webServer.get("/test", (req, resp) -> {
			resp.body().write("OK");
		});

		// 3.调用 HttpServer 方法.
		webServer.serve();*/
		WebServer.newInstance(8088).get("/abcd", (req,resp)->{resp.write("chenxh");}).serve();
	}
}
